<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>

import router from "../router";

export default {
  name: 'App',
  created() {
    // 防止刷新页面后菜单消失
    this.$store.commit('addMenu', router)
  }
}
</script>

<style>
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
}
#app {
  height: 100vh;
}
</style>
